package cn.kgc.utils;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.PropertySource;
import org.springframework.stereotype.Component;

import java.util.List;

/**
 * @author YC
 * 读取hire-common/src/main/resources/excludeUrlPath.properties，存放了不需要验证令牌的接口请求地址
 */
@Data
@Component
@PropertySource(value = "classpath:excludeUrlPath.properties")
@ConfigurationProperties(prefix = "exclude")
public class ExcludeProperties {

    /**
     * 不需要验证令牌的接口请求地址
     */
    private List<String> urls;

    /**
     * 需要限流的接口地址
     */
    private List<String> ipLimitUrls;

}
